//正则库
export default {
  bank: {
    role: /^([1-9]{1})(\d{15}|\d{18})$/,
    name: '银行卡号'
  },
  phone: {
    role: /^[1](([3][0-9])|([4][5-9])|([5][0-3,5-9])|([6][5,6])|([7][0-8])|([8][0-9])|([9][1,3,5,8,9]))[0-9]{8}$/,
    name: '手机号码'
  },
  email: {
    role: /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,
    name: '邮箱'
  },
  wxNumber: {
    role: /^[a-zA-Z][a-zA-Z\d_-]{5,19}$/,
    name: '微信号码'
  }
};

export type Tregex = 'wxNumber' | 'email' | 'phone' | 'bank';
